package satir.command;

import satir.SatirGame;
import satir.player.Player;

/**
 * The Class ViewStatus.
 * This player command is to retrieve the current status of a player
 * 
 * @version 2.0 March 2012
 * @author Bill Chan
 * 
 */
public class ViewStatusCmd implements Command {
	
	/** The satir game. */
	private SatirGame satirGame;
	
	/**
	 * Instantiates a new view status cmd.
	 *
	 * @param satirGame the satir game
	 */
	public ViewStatusCmd(SatirGame satirGame){
		this.satirGame = satirGame;
	}
	
	/* (non-Javadoc)
	 * @see stair.command.PlayerCmd#execute()
	 */
	public void execute(){
		Player targetPlayer=satirGame.getCurrentPlayer();		
		System.out.println("Here is the status of [" + targetPlayer.getName() + "]");
		System.out.println("Figure :" + targetPlayer.getFigure());
		System.out.println("Sell Esteem :" + targetPlayer.getSelfEsteem()+"\n");
	}

}